package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.entity.Dish;
import com.itheima.entity.vo.DishVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface DishService {

    IPage<DishVo> getDish(Integer page, Integer pageSize,String name);

    boolean addDish(DishVo dish);

    DishVo getByIdDish(Long id);

    boolean updateDish(DishVo dishVo);

    boolean updateStatus(List<Long> ids,Integer status);

    boolean deleteDish(List<Long> ids);

    List<Dish> getByIdDish(List<Long> ids);

//    List<Dish> getByCategoryId(Long categoryId,String name);
   List<DishVo> getByCategoryId(Long categoryId,String name);


}
